<div style="border:1px solid gray;padding:10px;width:400px;">
<?php $model=new DepositRateAnnulmentTerms?>
<div class="name_param sz11"><span class="name_sel" style="padding-top:2px;">Срок,</span>

<div class="select_adjustment valuta no_bord_bg">
        <?php echo $form->dropDownList($model, 'term_type', Deposits::model()->terms, array( 'id' => 'valuta5',  'class' => 'jcalendar-select-val','style'=>'width:50px;')); ?>
        <?php echo $form->error($model, 'term_type'); ?>  
</div>
</div>
<br>
<div style="height:20px;position:absolute;">
 
     <?php echo $form->textField($model, 'term_from', array('value' => 'От', 'class' => 'small', 'style' => 'margin-right:14px;', 'onfocus' => "this.value=''")); ?>
    <?php echo $form->error($model, 'term_from'); ?>

    <?php echo $form->textField($model, 'term_to', array('value' => 'До', 'class' => 'small', 'style' => '','onfocus' => "this.value=''")); ?>
    <?php echo $form->error($model, 'term_to'); ?>
  
</div>
<br><br>
<div>
        <div class="name_param">Процент:</div>
        <?php echo $form->textField($model, 'rate_value', array('class' => 'small', 'style' => 'margin-right:14px; ')); ?>
        <?php echo $form->error($model, 'rate_value'); ?>
        <?php
            echo CHtml::ajaxLink('<i style="color:red;">+ Добавить</i>', '/banks/DepositsRateAnnulmentTermsAjaxAdd/'.$ins_id, array(
                'type' => 'POST',
                'success'=>
                          'function(data){
                              $("#depoAnnulmentTermsBuf").append(data);
                           }'  
            ),
            array(
                'type' => 'submit',
                'class'=>'green sz11',
            ));
        ?>
<script type="text/javascript">
        $(document).ready(function(e) {  
                $("#valuta5").msDropDown();
        });
        function delRateAnnulmentTerms(id){
            $.ajax({
                url: "/banks/DepositsRateAnnulmentTermsAjaxDel/"+id,
                success: function(data){
                    $("#itemRateAnnulmentTerms"+id).remove();
                }
            });
        }
</script>
</div>